/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#include "IMECHS.h"

#if PLATFORM == PLATFORM_WINDOWS
#include "IMECHSWin.h"
#elif PLATFORM == PLATFORM_LINUX
#endif

namespace PQClient
{
	IMECHS::IMECHS(): _impl(0)
	{
#if PLATFORM == PLATFORM_WINDOWS
		_impl=new IMECHSWin();
#elif PLATFORM == PLATFORM_LINUX
#endif

	}
	
	IMECHS::~IMECHS()
	{
		if(_impl){
			delete _impl;
		}
	}
	
	bool IMECHS::injectChar(Ogre::RenderWindow* win, uint32 code)
	{
		if(_impl){
			return _impl->injectChar(win,code);
		}
		return false;
	}

	bool IMECHS::isLock()
	{
		if(_impl){
			return _impl->isLock();
		}
		return false;
	}

}

